home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/c/RCS/atexit,v $
- * $Date: 1996/04/19 21:26:42 $
- * $Revision: 1.1 $
- * $State: Rel $
- * $Author: simon $
- *
- * $Log: atexit,v $
- * Revision 1.1 1996/04/19 21:26:42 simon
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: atexit,v 1.1 1996/04/19 21:26:42 simon Rel $";
-
- #include <stdlib.h>
-
- int
- atexit (register void (*f) (void))
- {
- if (__axcnt >= __MAX_AXCNT)
- return (-1);
-
- __ax[__axcnt++] = f;
- return (0);
- }
-